import request from '@/utils/request'

export function getInfo(data) {
  return request({
    url: '/dict/get',
    method: 'post',
    data
  })
}

export function setInfo(data) {
  return request({
    url: '/dict/set',
    method: 'post',
    data
  })
}
export function updateInfo(data) {
  return request({
    url: '/dict/update',
    method: 'post',
    data
  })
}
// ai
export function getWithPagination(data) {
  return request({
    url: '/dict/getWithPagination',
    method: 'post',
    data
  })
}
export function addDict(data) {
  return request({
    url: '/dict/addDict',
    method: 'post',
    data
  })
}
export function updateDict(data) {
  return request({
    url: '/dict/updateDict',
    method: 'post',
    data
  })
}
//ai end